/*
 * Copyright (c) 2017. Visionet and/or its affiliates. All right reserved.
 * VISIONET PROPRIETARY/CONFIDENTIAL.
 */
package com.visionet.security.base.enums;

/**
 * @author TC.Ubuntu
 * @since 2017/7/4.
 */
public enum SecurityMessage {

	FAILURE("FAILURE", "faile"),
	SUCCESS("SUCCESS", "success"),
	NOT_LOGGED_IN("NOT_LOGGED_IN", "please login first"),
	ACCOUNT_LOCKED("ACCOUNT_LOCKED", "the account has been locked"),
	ACCESS_DENY("ACCESS_DENY", "can not access the request for the account"),
	ACCOUNT_NOT_FOUNT("ACCOUNT_NOT_FOUNT", "account not fount"),
	CREDENTIAL_INCORRECT("CREDENTIAL_INCORRECT", "credential is incorrect"),
	CREDENTIAL_EXPIRED("CREDENTIAL_EXPIRED", "credential is expired"),
	EXCESSIVE_ACCESS("EXCESSIVE_ACCESS", "try to login too often in a certain time");


	private String code;

	private String value;

	SecurityMessage(String code, String value) {
		this.code = code;
		this.value = value;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
}
